package com.bl.weilan.service.vo.main;

import com.bl.weilan.service.vo.AbstractVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;

/**
 * Created by liangweikang on 2017/6/3.
 */
@Data
public class RegisterVo extends AbstractVo {

    @NotNull(message = "手机号不能为空")
    @ApiModelProperty(value = "手机号", required = true)
    private String mobile;

    @NotNull(message = "验证码不能为空")
    @ApiModelProperty(value = "验证码", required = true)
    private String captcha;

    @NotNull(message = "密码不能为空")
    @Size(max = 16, message = "密码不能超过16位")
    @ApiModelProperty(value = "密码", required = true)
    private String password;

    @ApiModelProperty(value = "头像", required = true)
    private String avatar;

    @ApiModelProperty(value = "城市")
    private String city;

    @ApiModelProperty(value = "行业")
    private String institution;

    @ApiModelProperty(value = "联系人姓名")
    private String contacter;


    @ApiModelProperty(value = "创建时间")
    @Column(name = "create_time")
    private Date createTime;

}
